Drop gdk_surface_move
authorMatthias Clasen <mclasen@redhat.com>
Wed, 29 May 2019 15:21:20 +0000 (15:21 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 29 May 2019 18:04:08 +0000 (18:04 +0000)
And its cousin, gdk_surface_move_resize.
These APIs are expecting global coordinates,
which are going away. GTK is not using them
anymore.

docs/reference/gdk/gdk4-sections.txt
gdk/gdkinternals.h
gdk/gdksurface.c
gdk/gdksurface.h

index c2b259898953456125574778093ece2ec6bbdb92..d2860d37c1009f096ecab3cade0b140abb828a3b 100644 (file)
@@ -207,9 +207,7 @@ gdk_surface_set_fullscreen_mode
 gdk_surface_set_keep_above
 gdk_surface_set_keep_below
 gdk_surface_set_opacity
-gdk_surface_move
 gdk_surface_resize
-gdk_surface_move_resize
 gdk_surface_move_to_rect
 gdk_surface_raise
 gdk_surface_lower
index e23a33338f60d7f2e6ed35688ee872f69f47bc9d..8bed38199b9e8f6336463e6d2f678c1c3450f957 100644 (file)
@@ -266,6 +266,15 @@ void gdk_surface_get_geometry (GdkSurface *surface,
                                gint       *width,
                                gint       *height);
 
+void gdk_surface_move         (GdkSurface *surface,
+                               gint           x,
+                               gint           y);
+
+void gdk_surface_move_resize  (GdkSurface     *surface,
+                               gint           x,
+                               gint           y,
+                               gint           width,
+                               gint           height);
 
 G_END_DECLS
 
index ba4c73a72f43f8eaedec2b0c877e29e86a097e32..7c9c76b6a54781e8487e70becc8c281a0343ceb6 100644 (file)
@@ -2053,7 +2053,7 @@ gdk_surface_move_resize_internal (GdkSurface *surface,
 
 
 
-/**
+/*
  * gdk_surface_move:
  * @surface: a #GdkSurface
  * @x: X coordinate relative to surface’s parent
@@ -2087,10 +2087,7 @@ gdk_surface_move (GdkSurface *surface,
  * use gtk_window_resize() instead of this low-level GDK function.
  *
  * Surfaces may not be resized below 1x1.
- *
- * If you’re also planning to move the surface, use gdk_surface_move_resize()
- * to both move and resize simultaneously, for a nicer visual effect.
- **/
+ */
 void
 gdk_surface_resize (GdkSurface *surface,
                     gint       width,
@@ -2100,7 +2097,7 @@ gdk_surface_resize (GdkSurface *surface,
 }
 
 
-/**
+/*
  * gdk_surface_move_resize:
  * @surface: a #GdkSurface
  * @x: new X position relative to surface’s parent
index c93b3edba47b88a598e9b5f622dad743150256a5..55660ed9a6227ba2cc56725241ad86705822a4cc 100644 (file)
@@ -445,22 +445,11 @@ GDK_AVAILABLE_IN_ALL
 void          gdk_surface_hide                  (GdkSurface     *surface);
 GDK_AVAILABLE_IN_ALL
 void          gdk_surface_show_unraised         (GdkSurface     *surface);
-
-GDK_AVAILABLE_IN_ALL
-void          gdk_surface_move                  (GdkSurface     *surface,
-                                                 gint           x,
-                                                 gint           y);
 GDK_AVAILABLE_IN_ALL
 void          gdk_surface_resize                (GdkSurface     *surface,
                                                  gint           width,
                                                  gint           height);
 GDK_AVAILABLE_IN_ALL
-void          gdk_surface_move_resize           (GdkSurface     *surface,
-                                                 gint           x,
-                                                 gint           y,
-                                                 gint           width,
-                                                 gint           height);
-GDK_AVAILABLE_IN_ALL
 void          gdk_surface_move_to_rect          (GdkSurface         *surface,
                                                  const GdkRectangle *rect,
                                                  GdkGravity          rect_anchor,